package Pro;

public class ClientClass01 {
    public static void main(String[] args) throws CloneNotSupportedException {
        MyFruit fruit1 = new Apple();
        MyFruit fruit2 = (Apple)fruit1.clone();
        fruit1.display();
        fruit2.display();
        System.out.println("fruit1:" + fruit1.hashCode());
        System.out.println("fruit2:" + fruit2.hashCode());
    }
}
